package com.wesley.arrays;

public class ArrayDemo05 {
    public static void main(String[] args) {
        //[3][2]
        /*
            1,2  array[0]
            2,3  array[1]
            3,4  array[2]
         */
        int[][] array = {{1,2},{2,3},{3,4}};

        System.out.println(array[0]);//hash 值 ：[I@1b6d3586

        System.out.println(array[2][0]);
        System.out.println(array[2][1]);

        System.out.println(array.length);
        System.out.println(array[0].length);

        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array[i].length; j++) {
                System.out.print(array[i][j] + " ");
            }
        }
    }
}
